#ifndef QMYWINDOW_H
#define QMYWINDOW_H

#include <QtGui/QWidget>

#include "ui_MainWindow.h"

class QMyWindow : public QMainWindow
{
    Q_OBJECT

public:
	QMyWindow(QWidget *parent = 0);

public slots:
	void quitApp();
	void slotConvertFlakeHeightSliderValue(int);
	void slotConvertFlakeHeightAttenuationSliderValue(int);
	void slotConvertFlakeChildSizeSliderValue(int);

signals:
	void signalQuitApp();
	void signalFlakeHeightSliderValueFloat(float);
	void signalFlakeHeightAttenuationSliderValueFloat(float);
	void signalFlakeChildSizeSliderValueFloat(float);

private:
	float convertSlider2Float(const QSlider &qSlider);
	void setSliderValue(QSlider *qSlider, float v);
	void initWidgets();

	// -- private member variables --
	Ui::MainWindow	m_ui;
};

#endif // QMYWINDOW_H
